package com.news.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.news.entity.CheckNews;
import com.news.mapper.CheckNewsMapper;
import com.news.service.CheckNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @auther gxcc
 * @create 2021/4/2 16:20
 */
@Service
public class CheckNewsServiceImpl extends ServiceImpl<CheckNewsMapper, CheckNews> implements CheckNewsService {

    @Autowired
    CheckNewsMapper checkNewsMapper;

    @Override
    public List<CheckNews> hotList(Date startTime, Date endTime) {
        return checkNewsMapper.hotList(startTime,endTime);
    }
}
